ostree-remount: mount a tmpfs on /var if necessary so /var is read-write
authorOwen W. Taylor <otaylor@fishsoup.net>
Wed, 9 Jul 2014 23:07:38 +0000 (19:07 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Thu, 10 Jul 2014 01:24:07 +0000 (21:24 -0400)
commitff6883ca0655ac8844cd783caf6a7d8815515ba3
treea7d0d3ceeac321c598cc631734068c9bfd73f3e8
parent772409e945aa1f5d8e6c20c233fa36dda80950d8
ostree-remount: mount a tmpfs on /var if necessary so /var is read-write

/var needs to be read-write for a functioning system. Various
systemd services will fail to start if /var is read-only. After we
remount /var (or if we skip remounting /var because / is read-only),
if /var is still readonly, mount a tmpfs file system on /var.

While this isn't strictly part of ostree, keeping it here makes sense
because it keeps twiddling around with the /var mount in one place
for easier coordination and maintenance. This will likely need updating
if systemd gains better support for a readonly root filesystem.

https://bugzilla.gnome.org/show_bug.cgi?id=732979
src/switchroot/ostree-remount.c